package uy.com.csi.gestpro.model.proyecto;

import java.io.Serializable;
import java.util.List;

import javax.persistence.*;

import uy.com.csi.gestpro.model.mantenimiento.GpPrsnal;


/**
 * The persistent class for the gp_prsnal_prycto database table.
 * 
 */
@Entity
@Table(name="gp_prsnal_prycto", schema="proyecto")
@NamedQuery(name="GpPrsnalPrycto.findAll", query="SELECT g FROM GpPrsnalPrycto g")
public class GpPrsnalPrycto implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;

	private Integer estdo;
	
	@Column(name="oprario_nmro")
	private String oprarioNmro;
	
	//bi-directional many-to-one association to GpPrycto
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="id_prsnal")
	private GpPrsnal gpPrsnal;
	
	
	//bi-directional many-to-one association to GpPrycto
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="id_prycto")
	private GpPrycto gpPrycto;

	@OneToMany(mappedBy="gpPrsnalPrycto")
	private List<GpTreaPrsnal> actvdadPrsnals;
	
	public GpPrsnalPrycto() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getEstdo() {
		return this.estdo;
	}

	public void setEstdo(Integer estdo) {
		this.estdo = estdo;
	}

	public GpPrycto getGpPrycto() {
		return this.gpPrycto;
	}

	public void setGpPrycto(GpPrycto gpPrycto) {
		this.gpPrycto = gpPrycto;
	}

	public GpPrsnal getGpPrsnal() {
		return gpPrsnal;
	}

	public void setGpPrsnal(GpPrsnal gpPrsnal) {
		this.gpPrsnal = gpPrsnal;
	}

	public String getOprarioNmro() {
		return oprarioNmro;
	}

	public void setOprarioNmro(String oprarioNmro) {
		this.oprarioNmro = oprarioNmro;
	}

	public List<GpTreaPrsnal> getActvdadPrsnals() {
		return actvdadPrsnals;
	}

	public void setActvdadPrsnals(List<GpTreaPrsnal> actvdadPrsnals) {
		this.actvdadPrsnals = actvdadPrsnals;
	}

}